package com.ciei.dpagm.common.token;
import org.apache.shiro.authc.AuthenticationToken;

/**
* @author wangyan
* @date 2023/06/07
*/
public class StatelessToken implements AuthenticationToken {

    private String principal;

    private String credentials;

    private String access;

    public StatelessToken(String principal, String credentials, String access) {
        this.principal = principal;
        this.credentials = credentials;
        this.access = access;
    }

    @Override
    public Object getPrincipal() {
        return principal;
    }

    @Override
    public Object getCredentials() {
        return credentials;
    }

    public String getAccess(){return access;}

}
